import request from './config.js' //引入http.js
import BASE_URL from './config.js' //引入http.js
const api = request
export default {
	register: (data) => {
		return api.request('api/login/register', 'POST', data) //注册接口
	},
	login: (data) => {
		return api.request('api/login/index', 'POST', data) //登录接口
	},
	code: (data) => {
		return api.request('api/Msm/code', 'GET', data) //获取短信验证码接口
	},
	verifyCode: (data) => {
		return api.request('api/login/verifyCode', 'GET', data) //获取短信验证码接口
	},
	smsLogin: (data) => {
		return api.request('/api/login/smsLogin', 'POST', data) //短信验证码登录接口
	},
	forgetPwd: (data) => {
		return api.request('api/login/forgetPwd', 'POST', data) //短信验证码登录接口
	},
	Newsindex: (data) => {
		return api.request('api/News/index', 'GET', data) //首页咨询信息
	},
	userInfo: (data) => {
		return api.request('api/user/userInfo', 'GET', data) //用户信息
	},
	wallet: (data) => {
		return api.request('api/user/wallet', 'GET', data) //钱包信息
	},
	setimage: (data) => {
		return api.request('api/Upload/image', 'POST', data) //上传头像
	},
	qrcode: (data) => {
		return api.request('api/Qrcode/image', 'GET', data) //生产二维码
	},
	coinLianList: (data) => {
		return api.request('api/Coin/coinLianList', 'GET', data) //获取币种链接
	},
	upPasswork: (data) => {
		return api.request('api/user/upPasswork', 'POST', data) //修改密码
	},
	changePhone: (data) => {
		return api.request('api/user/changePhone', 'POST', data) //修改密码
	},
	modifyUser: (data) => {
		return api.request('api/user/modifyUser', 'POST', data) //修改密码
	},
	pledge: (data) => {
		return api.request('api/Hashrate/pledge', 'POST', data) //转入质押
	},
	getMarket: (data) => {
		return api.request('api/Market/getMarket', 'GET', data) //行情接口
	},
	getKline: (data) => {
		return api.request('api/Market/getKline', 'GET', data) //行情接口
	},
	detail: (data) => {
		return api.request('api/News/detail', 'GET', data) //行情接口
	}
}

